package com.controleur.listener.impl;


	import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.main.EasyLunch;
import com.vue.VotePanChoixMenu;
import com.vue.VotePanMod;
import com.vue.VotePanResto;
import com.vue.VotePanType;


	public class VotePanAnnulerListener  implements ActionListener{

		
		public VotePanAnnulerListener() {
			super();
		}
		@Override
		public void actionPerformed(ActionEvent arg0) 
		{
			if (EasyLunch.getFenetre().getPanneauApplication() instanceof VotePanResto) {
				EasyLunch.getFenetre().setPanneau(new VotePanType());
			}
			else if (EasyLunch.getFenetre().getPanneauApplication() instanceof VotePanMod) {
			EasyLunch.getFenetre().setPanneau(new VotePanResto());
			}
			else if (EasyLunch.getFenetre().getPanneauApplication() instanceof VotePanChoixMenu) {
				EasyLunch.getFenetre().setPanneau(new VotePanMod());
				}
		}
	}